package cate.game.role.res.spicecall.msg;

import cate.common.annotation.OperationSetter;
import cate.common.table.d.GDOperation;
import cate.common.util.GameResult;
import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBSpiceCall;

@ClientMsg(title = "批量占星执行 の 请求")
@OperationSetter(GDOperation.SPICE_BATCH_CALL)
public class SpiceCallBatchExeReq implements MsgInput {
    @Override
    public void execute(GameBody game, ClientContext cc) {
        GameResult<Void> r = cc.getRole().getRes().spiceCall.batchCall();
        game.notice.message(cc.getRole(), r);
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBSpiceCall.BATCH_EXE_REQ;
    }
}
